

import request from "@/service/axios/index";

const classApi = {
    // 查询行业类目列表
    getClassList: (data) => {
        return request.post({ url: '/product/class/list', data })
    },
    // 删除
    deleteClass: (id) => {
        return request.delete({ url: '/product/class/delete?id=' + id })
    },
    //新增
    createClass: (data) => {
        return request.post({ url: '/product/class/create', data })
    },
    //详情
    getClass: (id) => {
        return request.get({ url: '/product/class/get?id=' + id })
    }
}
export default classApi;